package com.k.demo.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.k.demo.entity.ConstantTermKind;
import com.k.demo.entity.Food;

public interface ConstantTermKindService {
	
	//查找全部
	List<ConstantTermKind> getAll();
	
	//根据id查找
	ConstantTermKind getById(int id);
	
	//根据id假删除
	int falseDeleteById(int id);
	
	//根据id真删除
	int trueDeleteById(int id);
	
	//批量删除
	boolean deleteByGroup(List<Integer> list);
	
	//修改常数项类别
	ConstantTermKind modifyConstantTermKind(ConstantTermKind constantTermKind);
	
	//增加常数项类别
	ConstantTermKind addConstantTermKind(ConstantTermKind constantTermKind);
	
	//显示所有id并分页显示
	PageInfo<ConstantTermKind> getPage(int pageNum,int pageSize);
	
	//显示根据name查找结果并分类显示
	PageInfo<ConstantTermKind> getPageByName(int pageNum,int pageSize,String name);

}
